import { defineStore } from 'pinia';

/**
 * 全局上下文状态
 */
export interface GlobalContextState {
  /**
   * 主内容区高度
   */
  mainContentHeight: number;
}

export const useGlobalContextStore = defineStore({
  id: 'app-global-context',
  state: (): GlobalContextState => {
    return {
      mainContentHeight: 0,
    };
  },
});
